#define _CRT_SECURE_NO_WARNINGS
#include"list.h"
int main()
{
	bit::list<int> lt;
	lt.push_back(1);
	lt.push_back(2);
	lt.push_back(3);
	lt.push_back(4);
	bit::list<int>::iterator it1 = lt.begin();
	while (it1 != lt.end())
	{
		cout << *it1 << " ";
		it1++;
	}
	cout << endl;
	cout << lt.size() << endl;
	cout << endl;
	bit::list<int> lt2 = lt;
	bit::list<int>::iterator it = lt2.begin();
	lt2.insert(lt2.begin(), 3);
	while (it != lt2.end())
	{
		cout << *it << " ";
		it++;
	}
	cout << endl;
	cout << lt.size() << endl;
	lt.pop_back();
	lt.pop_back();
	

	cout << lt.empty() << endl;
	return 0;
}